package com.ruoyi.project.medicinal.service.impl;

import com.ruoyi.project.medicinal.domain.StockProducter;
import com.ruoyi.project.medicinal.mapper.ProducterMapper;
import com.ruoyi.project.medicinal.service.ProducterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ProducterServiceImpl implements ProducterService {
    @Autowired
    private ProducterMapper producterMapper;
    @Override
    public List<StockProducter> selectProList(StockProducter producter) {
        return producterMapper.selectProList(producter);
    }

    @Override
    public int insertPro(StockProducter producter) {
        return producterMapper.insertPro(producter);
    }

    @Override
    public StockProducter selectProById(Long producterId) {
        return producterMapper.selectProById(producterId);
    }

    @Override
    public int updatePro(StockProducter producter) {
        return producterMapper.updatePro(producter);
    }

    @Override
    public int deleteProByIds(Long[] producterId) {
        return producterMapper.deleteProByIds(producterId);
    }
}
